package com.zbkj.common.model.assistant;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客服分组表
 * </p>
 *
 * @author zhuwy
 * @since 2025-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_assistant_group")
@ApiModel(value="AssistantGroup对象", description="客服分组表")
public class AssistantGroup implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "分组名称")
    private String name;

    @ApiModelProperty(value = "分组代码")
    private String code;

    @ApiModelProperty(value = "是否是默认分组")
    private Boolean isDefault;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Getter
    @AllArgsConstructor
    public enum CodeEnum {
        DEFAULT("DEFAULT", "默认分组"),
        BEFORE("BEFORE", "售前分组"),
        AFTER("AFTER", "售后分组"),
        VIP("VIP", "VIP分组");
        private String code;
        private String desc;
    }
}
